Skip to content

Patch endpoint#654

Merged
nuclearcat merged 3 commits intokernelci:mainfrom
nuclearcat:patch-endpoint
Mar 24, 2026
Merged

Patch endpoint#654
nuclearcat merged 3 commits intokernelci:mainfrom
nuclearcat:patch-endpoint

Conversation

@nuclearcat
Copy link
Member

No description provided.

Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
PATCH /node/{node_id} endpoint:
- Fetches the existing node from DB
- Merges only the fields provided in the request (exclude_unset=True)
- Validates the node subtype via parse_node_obj
- Validates state transitions (same logic as PUT)
- Resets processed_by_kcidb_bridge on update (same logic as PUT)
- Publishes CloudEvent (same as PUT)

Example:
curl -s -X PATCH -H 'Content-Type: application/json' \
     -H 'Authorization: Bearer ...' \
     -d '{"state":"done","result":"pass"}' \
    'https://api.kernelci.org/latest/node/69c24ea76d1f8ea2ada0f485'

Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
@nuclearcat nuclearcat added this pull request to the merge queue Mar 24, 2026
Merged via the queue into kernelci:main with commit b009786 Mar 24, 2026
3 checks passed
@nuclearcat nuclearcat deleted the patch-endpoint branch March 24, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant